'''
# 直接为列表赋值
food_list = ['康师傅方便面', '酸奶', '雪糕', '康师傅方便面', 18, 8.88, [1, 2, 3]]
print(type(food_list))
print(isinstance(food_list, list))

# 创建空列表 [] , list()
list1 = []
print(type(list1))
list2 = list()
print(type(list2))
string_value = 'python'
list_word = list(string_value)
print(list_word)
'''
# food_list = ['康师傅方便面', '酸奶', '雪糕', '康师傅方便面', 18, 8.88, [1, 2, 3]]
# print(food_list[6])
# print(food_list[-1])
# print(food_list[6][-1])
# print(food_list[1:4])
# print(food_list[-1][0:2])
# for value in food_list:
#     print("值为：",value)

food_list = ['康师傅方便面', '酸奶', '雪糕', '康师傅方便面', 18, 8.88, [1, 2, 3]]
food_list1 = ['啤酒', "泡面", '烤鸡']
food_list2 = ['花生', "瓜子", '火腿肠']

food_list3=[food_list1,food_list2]

# enumerate会带下标
for i,value in enumerate(food_list3):
    # print(i, value)
    print(f"{i+1}个参数值为：{value}")
    for j, name in enumerate(value):
        print(f"{j}-{name}")